using CodeGeneratorLibrary;
using Templates.Interfaces;

namespace Templates.Bitrix.Admin.ListPage
{
	public partial class AdminSapEventList_IView : ICodeFile
	{
		public AdminSapEventList_IView()
		{
			ClassNameFormat = ClassNameFormatDefault;
		}

		public void ResetDefaultSettings()
		{
			ClassNameFormat = ClassNameFormatDefault;
		}

		private Table _table;

		public void BindData(Table table)
		{
			_table = table;
		}

		public static string PrefixClassName
		{
			get
			{
				return "IAdminSap";
			}
		}

		public static string SuffixClassName
		{
			get
			{
				return "ListView";
			}
		}
		public string EntityName { get { return _table.EntityName; } }


		private static readonly string ClassNameFormatDefault = PrefixClassName + "{0}" + SuffixClassName;

		public string ClassNameFormat { get; set; }

		public string ClassName
		{
			get { return string.Format(ClassNameFormat, _table.EntityName); }
		}

		public string Namespace { get { return "Galssoft.SapEvents.View"; } }

		public string ProjectFileType { get { return "Compile"; } }
		public string ProjectFilePath { get { return @"View\Admin\Generated\" + ClassName + ".cs"; } }

		public string ProjFullName { get { return @"D:\Work\SAP Event\Sources\BusinessLogic\Galssoft.SapEventsModule.csproj"; } }
/*
		public string ProjFullName { get { return @"C:\Users\Administrator\Documents\Visual Studio 2010\Projects\ClassLibrary2\ClassLibrary2\ClassLibrary2.csproj"; } }
*/	}
}